// implementation of setup
// Graham Morgan and Jan Allbeck

#include "Setup.h"


Setup::Setup() {
	
	// set display mode (default)
	dbSetDisplayMode(1024, 768, 32);
	dbMaximiseWindow();
} 

Setup::Setup(int screenResW, int screenResH, int depth, int max) {

		//set ID
		dbSetDisplayMode(screenResW, screenResH, depth);
		if (max == 1) 
			dbMaximiseWindow();
}

Setup::~Setup() {

	// empty
	

}

void Setup::syncFrame(int frame, int sync) {

	
	dbSyncRate (frame);

	if (sync == 1) 
		dbSyncOn();
}